package com.iias.communication.consts;


import com.iias.communication.enums.Protocol;

/**
 * 服务注册发现 静态变量
 */
public class CommunicationConst {

    /**
     * 使用协议
     */
    public static Protocol PROTOCOL = Protocol.COMMON_STRING;

    /**
     * 服务默认端口
     */
    public final static Integer DEFAULT_CLIENT_PORT = 20000;

    /**
     * 服务端默认端口
     */
    public final static Integer DEFAULT_SERVER_PORT = 18080;

    /**
     * TCP缓冲区大小
     */
    public final static Integer DEFAULT_SO_BACKLOG = 1024;
    /**
     * 发送缓冲区大小
     */
    public final static Integer DEFAULT_SO_SND_BUF = 32*1024;

    /**
     * 接收缓冲区大小
     */
    public final static Integer DEFAULT_SO_RCV_BUF = 32*1024;

    /**
     * 是否保持连接
     */
    public final static boolean DEFAULT_SO_KEEPALIVE= true;
}
